package com.yc.yyds.dao;

import com.yc.yyds.util.DBHelper;

import java.util.List;
import java.util.Map;

public class UserLoginDao {

    public Map<String,Object> userMsg(String userzh,String pwd){
        String sql = " select * from user where userzh = ? and pwd = ?";
        return DBHelper.selectOneMap(sql,userzh,pwd);
    }
    public Map<String,Object> userPhoneMsg(String phone){
        String sql = " select * from user where phone=?";
        return DBHelper.selectOneMap(sql,phone);
    }
    public Map<String,Object> Map(String userid){
        String sql = "select * from user where userid=?";
        return DBHelper.selectOneMap(sql,userid);
    }


}
